﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZR.Model.Models.ProductionControl
{
    [SugarTable("recipe_config")]
    public class EquipmentFormula
    {
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
        public int ID { get; set; }

        [SugarColumn(ColumnName = "line_code")]
        public string ProductionLine { get; set; }

        [SugarColumn(ColumnName = "station_code")]
        public string StationCode { get; set; }

        [SugarColumn(ColumnName = "version_no")]
        public int VersionNo { get; set; }

        [SugarColumn(ColumnName = "recipe_id")]
        public int RecipeId { get; set; }

        [SugarColumn(ColumnName = "recipe_name")]
        public string RecipeName { get; set; }

        [SugarColumn(ColumnName = "craft_name")]
        public string CraftName { get; set; }

        [SugarColumn(ColumnName = "item_no")]
        public int ItemNo { get; set; }

        [SugarColumn(ColumnName = "item_address")]
        public string ItemAddress { get; set; }

        [SugarColumn(ColumnName = "craft_value")]
        public string CraftValue { get; set; }

        [SugarColumn(ColumnName = "recipe_enabled")]
        public bool RecipeEnabled { get; set; }

        [SugarColumn(ColumnName = "creation_time")]
        public DateTime CreationTime { get; set; }

        [SugarColumn(ColumnName = "creator_name")]
        public string CreatorName { get; set; }

        [SugarColumn(ColumnName = "mes_pushed")]
        public int MesPushed { get; set; }

        [SugarColumn(ColumnName = "is_enabled")]
        public bool IsDeleted { get; set; } = false;
    }
}